package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.bank.IllegalactivityDetail;
import com.jishuo.nontax.bean.message.SetIllegalactivityDetail;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;

/**
 * @auther dinggaofei
 * @Date 2023/2/7 14:45
 * @tableName T_JJILLEGALACTIVITYDETAIL 交罚明细表
 */
@Data
public class IllegalactivityDetailVO {
    /**
     * 决定书编号
     */
    private String billnum;

    /**
     * 违法编号
     */
    private String occurcode;

    /**
     * 违法行为
     */
    private String actions;

    /**
     * 违法描述
     */
    private String actionscontent;

    /**
     * 罚款金额
     */
    private BigDecimal funds;

    /**
     * 是否可用
     */
    private Integer isuse;

    /**
     * 传输时间
     */
    private String writedate;

    /**
     *
     */
    private Date entrydate;

    //返回 IllegalactivityDetail的类集合
    public ArrayList<IllegalactivityDetail> findDetail() {
        ArrayList<IllegalactivityDetail> list = new ArrayList<>();
        for (IllegalactivityDetail detail : list
        ) {
            detail.setActions(this.actions);
            detail.setActionscontent(this.actionscontent);
            detail.setOccurcode(this.occurcode);
        }
        return list;
    }

    public IllegalactivityDetailVO() {
    }

    //从SetIllegalactivityDetail取数据
    public IllegalactivityDetailVO(SetIllegalactivityDetail detail) {
        this.occurcode = detail.getOccurcode();
        this.actions = detail.getActions();
        this.actionscontent = detail.getActionscontent();
    }
}
